package com.elong.businesstravel.protocol.hotel;

import org.apache.http.Header;
import org.json.JSONObject;

import com.elong.businesstravel.protocol.baseresponse.BaseELongJsonHttpResponse;

public class CheckGuestResponse extends BaseELongJsonHttpResponse {

	protected String code = "";
	protected String reslut = "";
	
	@Override
	public void onSuccess(int statusCode, Header[] headers,
			JSONObject mainJsonObject) throws Throwable {
		JSONObject responseJsonObject = mainJsonObject.optJSONObject("response");
		if(null != responseJsonObject){
			code = responseJsonObject.optString("code", "");
			if("0".equals(code)){
				reslut = responseJsonObject.optString("reslut","");
			}else if ("1".equals(code)) {
				
			}
		}
	}

}
